package com.dysf.dao.impl;

import com.dysf.beans.Role;
import com.dysf.dao.RoleDao;
import org.springframework.stereotype.Repository;

/**
 * @Description
 * @Author dysfzl
 * @Date 2022-01-07 15:30
 * @Copyright xx科技有限公司 Copyright (c)
 * @Version 1.0
 */
@Repository
public class RoleDaoImpl implements RoleDao {
    public Role get(Integer id) {
        if(id==null){
            throw new NullPointerException();
        }
        // 数据库执行SELECT
        return new Role();
    }

    public void add(Role role)  {
        if(role==null){
            throw new NullPointerException();
        }
        // 数据库执行ADD
    }

    public void delete(Integer id) {
        if(id==null){
            throw new NullPointerException();
        }
        // 数据库执行DELETE
    }

    public void update(Role role) {
        if(role==null){
            throw new NullPointerException();
        }
        // 数据库执行UPDATE
    }
}
